package charpter12.lynx;

class VeryImportantException extends Exception {
	/**
	 * 
	 */
	private static final long serialVersionUID = 4398143771040316937L;

	public String toString() {
		return "A very important exception!";
	}
}

class HoHumException extends Exception {
	/**
		 * 
		 */
	private static final long serialVersionUID = -4300434783060166477L;

	public String toString() {
		return "A trivial exception";
	}
}

public class Eighteen {
	void f() throws VeryImportantException {
		throw new VeryImportantException();
	}

	void dispose() throws HoHumException {
		throw new HoHumException();
	}

	@SuppressWarnings("finally")
	public static void main(String[] args) {
		try {
			try {
				Eighteen lm = new Eighteen();
				try {
					lm.f();
				} finally {
					lm.dispose();
				}
			}finally{
				throw new Exception();
			}	
		} catch (Exception e) {
			System.out.println(e);
		}
		
	}
}
